package com.glsc.ngateway.common.api.flowable.dto.demand.node;

public enum ProcessNode {

    submitTask("需求提交"),

    confirmTask("需求确认"),

    arrangeTask("排期"),

    onlineTask("上线"),

    checkTask("验证"),

    advanceTask("高级审批"),

    signatureTask("相关人员会签"),

    createoaTask("OA流程处理"),

    finish("结束"),

    cancel("强制归档");

    private String definekey;

    private ProcessNode(String definekey) {
        this.definekey = definekey;
    }

    public String getDefinekey() {
        return definekey;
    }


    public static ProcessNode getProcessNode(String definekey) {
        for (ProcessNode processNode : ProcessNode.values()) {
            if (processNode.getDefinekey().equalsIgnoreCase(definekey)) {
                return processNode;
            }
        }
        return null;
    }
}
